//
//  RSegement.h
//  RSegement
//
//  Created by Zin_戦 on 2018/2/6.
//  Copyright © 2018年 Zin_戦. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CurrentIndexDelegete <NSObject>

@optional

- (void)selectIndex:(NSInteger)index current_btn:(UIButton *)current_btn;

@end

@interface RSegement : UIView
@property (weak, nonatomic) IBOutlet UIView *view0;
@property (weak, nonatomic) IBOutlet UIView *view1;
@property (weak, nonatomic) IBOutlet UIView *view2;
@property (weak, nonatomic) IBOutlet UIView *view3;
@property (weak, nonatomic) IBOutlet UIImageView *line0;
@property (weak, nonatomic) IBOutlet UIImageView *line1;
@property (weak, nonatomic) IBOutlet UIImageView *line2;
@property (weak, nonatomic) IBOutlet UIImageView *line3;
@property (weak, nonatomic) IBOutlet UIButton *btn0;
@property (weak, nonatomic) IBOutlet UIButton *btn1;
@property (weak, nonatomic) IBOutlet UIButton *btn2;
@property (weak, nonatomic) IBOutlet UIButton *btn3;


@property (nonatomic, weak) id <CurrentIndexDelegete> delegate;
+ (void)setBadgeNumber:(NSInteger)badgeNumber buttonItem:(UIButton *)buttonItem;


@end
